package com.xingxuecn.limit.common.model;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author Zy at 2018/9/10 0010 下午 5:59
 */
public class Role {
    private Integer id;
    private Integer age;
    private String name;

    public Role() {
    }

    public Role(Integer id, String name,Integer age) {
        this.id = id;
        this.age = age;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAge() { return age; }

    public void setAge(Integer age) { this.age = age; }

    public String getName(){return name;}
    public void setName(String name){this.name = name;}


    @Override
    public String toString() {
        return new ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("id", id)
                .append("name", name)
                .append("age", age)
                .toString();
    }
}
